package com.sun.entity;


import jakarta.persistence.Column;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.MappedSuperclass;
import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.Where;

import java.time.LocalDateTime;


/**
 * MP自动填充Handler
 *
 * @Author sun
 * @CreateTime 2025/9/2 1:08
 */
@Data
@MappedSuperclass

@EntityListeners(CreateAndUpdateListener.class)
public class BaseEntity {

    private String name;
    private String code;
    private String remark;
    private String description;
    @Column(columnDefinition = "int default 0")
    private int orderNumber;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long createrId;
    private Long updaterId;
    private String createrName;
    private String updaterName;
    @Column(columnDefinition = "bigint default 0")
    private Long deleted;
    @Column(columnDefinition = "boolean default true")
    private boolean enabled;

}
